package io.bytestream;

import java.io.FileInputStream;
import java.io.IOException;

public class Test6 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("AdvancedCode/src/io/bytestream/info/info.txt");
        byte[] bytes = new byte[8];
        int count;
        while ((count = fis.read(bytes)) != -1){
            System.out.print(new String(bytes, 0, count));
        }
        fis.close();
    }
}
